package com.wang.service.impl;

import com.wang.bean.Lesson;
import com.wang.mapper.LessonMapper;
import com.wang.service.LessonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LessonServiceImpl implements LessonService {

    @Autowired
    private LessonMapper lessonMapper;

    @Override
    public List<Lesson> lessonlistall() {
        return lessonMapper.lessonlistall();
    }

    @Override
    public void lessonadd(Lesson l) {
        lessonMapper.lessonadd(l);
    }

    @Override
    public void lessondel(Lesson l) {
        lessonMapper.lessondel(l);
    }

    @Override
    public void lessondit(Lesson l) {
        lessonMapper.lessondit(l);
    }

    @Override
    public Lesson lessonsearch(String id) {
        return lessonMapper.lessonsearch(id);
    }
}
